/*
 * Copyright (c) 2009 Enio Perpetuo
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 * 		http://www.apache.org/licenses/LICENSE-2.0
 *  
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 * See the License for the specific language governing permissions and 
 * limitations under the License.
 *  
 */
package co.za.gvi.transport;

import co.za.gvi.bind.GviSmsMessageType;
import co.za.gvi.bind.ObjectFactory;

/**
 * This class is used to create <code>TransmissionRules</code>.
 * <p>
 * <b>Note:</b> <code>Transmission Rules</code> are currently NOT supported. They are included in the API for future use.
 * 
 * @author Enio Perpetuo
 */
public class TransmissionRulesProxy {
	
	private GviSmsMessageType.TransmissionRules transmissionRules;
	private ObjectFactory factory;

	/**
	 * Constructor 
	 */
	public TransmissionRulesProxy() {
		this.factory = new ObjectFactory();
		this.transmissionRules = factory.createGviSmsMessageTypeTransmissionRules();
	}
	
	/**
	 * Get the transmissionRules
	 * @return The transmissionRules
	 */
	protected GviSmsMessageType.TransmissionRules getTransmissionRules() {
		return this.transmissionRules;
	}

	/**
	 * Set the startDateTime
	 * @param startDateTime the startDateTime to set
	 */
	public void setStartDateTime(int startDateTime) {
		this.transmissionRules.setStartDateTime(String.valueOf(startDateTime));
	}

	/**
	 * Set the endDateTime
	 * @param endDateTime the endDateTime to set
	 */
	public void setEndDateTime(int endDateTime) {
		this.transmissionRules.setEndDateTime(String.valueOf(endDateTime));
	}

	/**
	 * Set the validityPeriod
	 * @param validityPeriod the validityPeriod to set
	 */
	public void setValidityPeriod(String validityPeriod) {
		this.transmissionRules.setValidityPeriod(validityPeriod);
	}
}
